package pzl.com.bluetooth.bean;

import java.io.Serializable;

/**
 * @author zl.peng
 * @version [1.0, 2016-10-17]
 *          蓝牙通信对象
 */
public class BluetoothMessage implements Serializable {

    public static final int TYPE_TEXT = 1;
    public static final int TYPE_BITMAP = 2;
    public static final int TYPE_AUDIO = 3;
    public static final int TYPE_VIDEO = 4;
    public static final int TYPE_FILE = 5;

    /**
     * 数据类型
     */
    public int type;
    /**
     * 传输的数据
     */
    public Object message;
    /**
     * 发送者
     */
    public String sender;
    /**
     * 接收者
     */
    public String receiver;

    @Override
    public String toString() {
        return "BluetoothMessage{" +
                "type=" + type +
                ", message=" + message +
                ", sender='" + sender + '\'' +
                ", receiver='" + receiver + '\'' +
                '}';
    }
}
